package org.jeecg.modules.zhima.portal.enums;

public enum GameType {

    TYPE_1(1,  "JF","积分赛"),
    TYPE_2(2, "QP","抢票赛"),
    TYPE_3(3, "JJ","掘金赛");

    public Integer CODE;

    public String RULE_CODE;

    public String VALUE;

     GameType(Integer code, String ruleCode, String value){
        this.CODE = code;
        this.RULE_CODE = ruleCode;
        this.VALUE = value;
    }

    public static GameType get(Integer code){
         switch (code){
             case 1:
                 return TYPE_1;
             case 2:
                 return TYPE_2;
             case 3:
                 return TYPE_3;
             default:
                 return TYPE_1;
         }
    }
}
